<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page language="java" pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<link rel="stylesheet"
	href="<c:url value="/resources/lib/bootstrap-3.3.5/css/bootstrap.min.css"/>" />
<link href="/resources/lib/font-awesome-4.4.0/css/font-awesome.min.css"
	rel="stylesheet" type="text/css" />
	
<link href="/resources/css/header.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="<c:url value="/resources/css/common.css"/>" />
<link rel="stylesheet"
	href="<c:url value="/resources/css/task/manageTaskFlow.css"/>" />
<script src="<c:url value="/resources/lib/jquery-2.1.4.min.js" />"
	type="text/javascript"></script>
<script
	src="<c:url value="/resources/lib/bootstrap-3.3.5/js/bootstrap.min.js" />"
	type="text/javascript"></script>
<script
	src="<c:url value="/resources/lib/angular-1.4.7/angular.min.js"/>"
	type="text/javascript"></script>

<script
	src="<c:url value="/resources/lib/Smart-Table-master/dist/smart-table.min.js" />"
	type="text/javascript">
	
</script>
<script src="<c:url value="/resources/js/task/manageTaskFlow.js" />"
	type="text/javascript"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>manage Task Flow</title>
</head>
<body ng-app="conversionTool">
	<ng-include src="'/resources/viewPart/nav.html'"> </ng-include>
	<header>
		<div class="head-line">
			<h3 class="head-title">Manage Task Flow</h3>
		</div>
	</header>

	<section class="container" ng-controller="manageTaskFlowCtrl">
		<div class="form-group text-center form-line" id="label-taskflow">
		  <div class="col-xs-offset-2 text-left">
			<label>TaskFlow List</label>
			</div>
			</div>
			
			<div class="form-group text-center form-line">
		  <div class="col-xs-offset-2">

			<table st-table="taskflowsDisplay"  st-safe-src="taskflows" class="table table-bordered">
				<thead>
					<tr>
						
						<th st-sort="taskFlowName">Task Flow Name</th>
						<th st-sort="status">Status</th>
						<th>View Log</th>
						<th>View Tasks</th>
					</tr>
				</thead>
				<tbody>
					<tr ng-repeat="item in taskflowsDisplay">
						
						<td>{{item.taskFlowName}}</td>
						<td>{{item.status}}</td>
						<td>
						<!--<input type="button" class="btn btn-default" value="View Log" ng-click="viewLog(item.id)" />-->
						<button  class="btn btn-default btn-border"  ng-click="viewLog(item.id)" >
						 <span><i class="glyphicon glyphicon-edit"></i></span></button>
							</td>
							
							
						<td>
						<button class="btn btn-default btn-border" ng-click="viewTask(item.id)" >
						<span><i class="glyphicon glyphicon-edit"></i></span>
						</button>
						
						</td>
					</tr>
				</tbody>

				<tfoot>
					<tr>
						<td colspan="5" class="text-center">
							<div st-pagination="" st-items-by-page="itemsByPage"
								st-displayed-pages="7"></div>
						</td>
					</tr>
				</tfoot>
			</table>
		</div>
</div>

	</section>


</body>
</html>
